<?php
$this->headScript()->appendFile($this->baseUrl('js/modules/roles.js'));
//Zend_Debug::dump($this->arreglo);
//echo count($this->arreglo);
$perfil = App_Perfil::getInstance();
$perfil->cargar("ADMIN_ROLES");
?>
<div style="width: 700px;" class="center-block">
<form action="<?=$this->baseUrl("/roles/index/asignarpermisos");?>" method="post" name="formapara" encType="multipart/form-data">
<input type="hidden" name="codrol" value="<?php echo $this->codrol;?>">
<table id="table_id" align="center" class="iceDatTbl zebra">
 	<thead>
	    <tr>
	      <th width="60%">Funcionalidades</th>
	      <th width="10%">VER</th>
	      <th width="10%">CREAR</th>
	      <th width="10%">MODIFICAR</th>
	      <th width="10%">ELIMINAR</th>
	    </tr>
	</thead>
	<tbody>
    <tr>
	  <td>&nbsp;</td>
	  <td style="text-align:center;"><input type="checkbox" name="checkbox1" value="1" onclick="seleccionar_columna('ver',this);" checked="checked"/></td>
	  <td style="text-align:center;"><input type="checkbox" name="checkbox2" value="1" onclick="seleccionar_columna('cre',this);" checked="checked"/></td>
	  <td style="text-align:center;"><input type="checkbox" name="checkbox3" value="1" onclick="seleccionar_columna('mod',this);" checked="checked"/></td>
	  <td style="text-align:center;"><input type="checkbox" name="checkbox4" value="1" onclick="seleccionar_columna('eli',this);" checked="checked"/></td>
	</tr>
    <?php
       echo $this->asignacionFuncionalidadesRol;
	 ?>
   </tbody>
</table>
<?php if ($perfil->modificar()){?>
<div align="right" class="buttons"><input type="submit" value="Guardar permisos" class="btn btn-warning btn-sm" /></div>
<?php }?>
</form>
</div>
